package org.java8newfeature.stream;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.function.Predicate;

@Data
@AllArgsConstructor
public class Employee{
    private int id;
    private int age;
    private String gender;
    private String firstName;
    private String lastName;



    public static Predicate<Employee> ageGreaterThan70 = employee -> employee.getAge() > 70;
    public static Predicate<Employee> genderM = employee -> employee.getGender().equals("M");


}
